var e;

e = getApp(), Page({
    data: {
        src: null
    },

    onLoad: function(o) {
        o.title && wx.setNavigationBarTitle({
            title: decodeURIComponent(o.title)
        });
        var t = wx.getStorageSync("userId"), n = wx.getStorageSync("userToken"), a = decodeURIComponent(o.url + "?uid=" + t + "&userToken=" + n);
        a.indexOf("://") < 0 && (a = e.globalData.siteUrl + a + "?uid=" + t + "&userToken=" + n), 
        this.setData({
            src: a
        }), (o.headerForeColor || o.headerBgColor) && wx.setNavigationBarColor({
            frontColor: o.headerForeColor ? decodeURIComponent(o.headerForeColor) : "#ffffff",
            backgroundColor: o.headerBgColor ? decodeURIComponent(o.headerBgColor) : "#06c1ae",
            animation: {
                duration: 400,
                timingFunc: "easeIn"
            }
        });
    },

  
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {
        var e = getCurrentPages();
        e[e.length - 1], e[e.length - 2].setData({
            file: this.data.file,
            fileName: "已选择文件"
        });
    },
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {},
    onMessage: function(e) {
        "previewImage" == e.detail.cmd && wx.previewImage(e.detail.data), this.setData({
            file: e.detail.data
        });
    }
});